package pl.edu.agh.jemo.evolution.specimen.impl;

import pl.edu.agh.jemo.evolution.genotype.impl.DoubleGenotype;
import pl.edu.agh.jemo.evolution.objfunc.ObjectiveFunctionSet;
import pl.edu.agh.jemo.evolution.objfunc.impl.Simple2DObjFunc;
import pl.edu.agh.jemo.evolution.specimen.Specimen;

public class MockSpecimen extends Specimen {

	public MockSpecimen() {
		ObjectiveFunctionSet fun = new ObjectiveFunctionSet();
		fun.add(new Simple2DObjFunc());
		try {
			init(fun, DoubleGenotype.class);
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		
	genotype[0].fromDouble(0.);
	genotype[1].fromDouble(0.);
	}
	
	public void setGenotype(Double a, Double b) {
		genotype[0].fromDouble(a);
		genotype[1].fromDouble(b);		
	}

}
